package com.school.entity;

import java.time.LocalDate;
import java.util.Date;
import java.util.Locale;

public class Coupon {
    private Long couponId;
    private String couponName;
    private String couponDesc;
    private  Integer couponTotal;
    private  Integer discount;
    private  Integer min;
    private  Byte couponLimit;
    private  Byte couponType;
    private  Byte couponStatus;
    private  Byte goodsType;
    private String goodsValue;
    private String couponCode;
    private LocalDate couponStartTime;
    private LocalDate couponEndTime;
    private Date createTime;
    private  Date updateTime;
    private  Byte isDeleted;


    public Coupon(){

    }
    public Coupon(Long couponId, String couponName, String couponDesc, Integer couponTotal, Integer discount, Integer min, Byte couponLimit, Byte couponType, Byte couponStatus, Byte goodsType, String goodsValue, String couponCode, LocalDate couponStartTime, LocalDate couponEndTime, Date createTime, Date updateTime, Byte isDeleted) {
        this.couponId = couponId;
        this.couponName = couponName;
        this.couponDesc = couponDesc;
        this.couponTotal = couponTotal;
        this.discount = discount;
        this.min = min;
        this.couponLimit = couponLimit;
        this.couponType = couponType;
        this.couponStatus = couponStatus;
        this.goodsType = goodsType;
        this.goodsValue = goodsValue;
        this.couponCode = couponCode;
        this.couponStartTime = couponStartTime;
        this.couponEndTime = couponEndTime;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }

    public String getCouponDesc() {
        return couponDesc;
    }

    public void setCouponDesc(String couponDesc) {
        this.couponDesc = couponDesc;
    }

    public Integer getCouponTotal() {
        return couponTotal;
    }

    public void setCouponTotal(Integer couponTotal) {
        this.couponTotal = couponTotal;
    }

    public Integer getDiscount() {
        return discount;
    }

    public void setDiscount(Integer discount) {
        this.discount = discount;
    }

    public Integer getMin() {
        return min;
    }

    public void setMin(Integer min) {
        this.min = min;
    }

    public Byte getCouponLimit() {
        return couponLimit;
    }

    public void setCouponLimit(Byte couponLimit) {
        this.couponLimit = couponLimit;
    }

    public Byte getCouponType() {
        return couponType;
    }

    public void setCouponType(Byte couponType) {
        this.couponType = couponType;
    }

    public Byte getCouponStatus() {
        return couponStatus;
    }

    public void setCouponStatus(Byte couponStatus) {
        this.couponStatus = couponStatus;
    }

    public Byte getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(Byte goodsType) {
        this.goodsType = goodsType;
    }

    public String getGoodsValue() {
        return goodsValue;
    }

    public void setGoodsValue(String goodsValue) {
        this.goodsValue = goodsValue;
    }

    public String getCouponCode() {
        return couponCode;
    }

    public void setCouponCode(String couponCode) {
        this.couponCode = couponCode;
    }

    public LocalDate getCouponStartTime() {
        return couponStartTime;
    }

    public void setCouponStartTime(LocalDate couponStartTime) {
        this.couponStartTime = couponStartTime;
    }

    public LocalDate getCouponEndTime() {
        return couponEndTime;
    }

    public void setCouponEndTime(LocalDate couponEndTime) {
        this.couponEndTime = couponEndTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Byte getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Byte isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public String toString() {
        return "Coupon{" +
                "couponId=" + couponId +
                ", couponName='" + couponName + '\'' +
                ", couponDesc='" + couponDesc + '\'' +
                ", couponTotal=" + couponTotal +
                ", discount=" + discount +
                ", min=" + min +
                ", couponLimit=" + couponLimit +
                ", couponType=" + couponType +
                ", couponStatus=" + couponStatus +
                ", goodsType=" + goodsType +
                ", goodsValue='" + goodsValue + '\'' +
                ", couponCode='" + couponCode + '\'' +
                ", couponStartTime=" + couponStartTime +
                ", couponEndTime=" + couponEndTime +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", isDeleted=" + isDeleted +
                '}';
    }
}
